package com.ydche.util;

import java.math.BigDecimal;

public class MyNumber {
    public static double scaleDouble(double src) {
        BigDecimal b = new BigDecimal(src);
        return b.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
    }
}
